import React,{ useState,useEffect } from 'react';
import {apiLogin} from './api/user.api'

// 浏览器同源策略 跨域   职责分离 一个文件只做一件事
// :3000 component -> lifeCycle -> api（拦截 axios request + 404 + mockjs）->     -> backend 8000

function App() {
  // store
  
  useEffect(()=>{
    // 函数式编程思想
    const fn=async ()=>{

      await apiLogin({username:'root',password:'123456'});
    }
    fn();
    // return 
  },[]);
  return (
    <div>
      
    </div>
  )
}

export default App
